package com.ffyc.ssm.service;

import com.ffyc.ssm.modle.Ad;
import com.ffyc.ssm.dao.AdDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdService {

    @Autowired
    AdDao dao;

    //查询广告列表
    public List<Ad> findAdList(Ad ad) {
        return dao.findAdList(ad);
    }

    public void uploadAd(Ad ad) {
        dao.uploadAd(ad);
    }

    public void deleteAd(Integer id) {
        dao.deleteAd(id);
    }

}
